<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  <head>
    <meta name="copyright" content=
    "Copyright (c) IBM Corporation and others 2000, 2011. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." />
    <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type=
    "text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <title>
      Sibling products in a common source tree
    </title>
    <script language="JavaScript" type="text/javascript" src=
    "PLUGINS_ROOT/org.eclipse.help/livehelp.js">

</script>
  </head>
  <body>
    <h1>
      Sibling Products in a Common Source Tree
    </h1>
    <h3>
      Layout on File System
    </h3>
    <ul>

      <li>The source files for products are laid out in one big directory that
      is version and configuration managed outside Eclipse.
      </li>
      <li>The source directory contains two siblings directories
      <i><code>Product1</code></i> and <i><code>Product2</code></i>.
        <p>
          <img src="images/qs-WorkingWithExistingLayout10.png" alt=
          "Layout on file system" />
        </p>
      </li>

    </ul>
    <h3>
      Steps for Defining Corresponding Projects
    </h3>
    <ol>
      <li>
        <p>
          Click <a class="command-link" href=
          'javascript:executeCommand("org.eclipse.ui.perspectives.showPerspective(org.eclipse.ui.perspectives.showPerspective.perspectiveId=org.eclipse.jdt.ui.JavaPerspective)")'>
          <img src="PLUGINS_ROOT/org.eclipse.help/command_link.svg" alt=
          "Opens the Java perspective" /> <strong>Window &gt; Open Perspective
          &gt; Other... &gt; Java</strong></a> to change to the Java
          perspective.
        </p>

      </li>
      <li>
        <p>
          Click <a class="command-link" href=
          'javascript:executeCommand("org.eclipse.ui.newWizard(newWizardId=org.eclipse.jdt.ui.wizards.JavaProjectWizard)")'>
          <img src="PLUGINS_ROOT/org.eclipse.help/command_link.svg" alt=
          "Opens the New Java Project wizard" /> <strong>File &gt; New &gt;
          Other... &gt; Java Project</strong></a> to open the <strong>New Java
          Project</strong> wizard.
        </p>

      </li>
      <li>
        <p>
          Type "Product1" in the <strong>Project name</strong> field. Click
          <strong>Next</strong>.
        </p>
        <p>
          <img src="images/qs-WorkingWithExistingLayout11.png" alt=
          "New Java Project wizard" />

        </p>
      </li>
      <li>
        <p>
          On the next page, Select "Product1" source folder.
        </p>
        <p>
          Click <strong>Link additional source</strong> link in
          <strong>Details</strong> pane or button <img src=
          "images/add_linked_source_to_buildpath.svg" alt=
          "Link Additional Source to Project" /> in view bar.
        </p>

        <p>
          <img src="images/qs-WorkingWithExistingLayout12.png" alt=
          "Java Project Source setup" />
        </p>
      </li>
      <li>
        <p>
          In <strong>Link Source</strong> dialog click
          <strong>Browse....</strong> and choose the
          <i><code>D:\AllProducts\Product1\JavaSourceFiles</code></i>

          directory.
        </p>
        <p>
          <img src="images/qs-WorkingWithExistingLayout13.png" alt=
          "Link Source dialog" />
        </p>
      </li>
      <li>Click <strong>Finish</strong> to validate and close the dialog.
      </li>

      <li>
        <p>
          Your project source setup now looks as follows:
        </p>
        <p>
          <img src="images/qs-WorkingWithExistingLayout14.png" alt=
          "Java Project Source final setup" />
        </p>
      </li>
      <li>

        <p>
          Click <strong>Finish</strong>.
        </p>
      </li>
      <li>
        <p>
          Repeat steps 2 to 8 for "Product2".
        </p>
      </li>

      <li>
        <p>
          You now have two Java projects which respectively contain the sources
          of "Product1" and "Product2".
        </p>
        <p>
          <img src="images/qs-WorkingWithExistingLayout15.png" alt=
          "Created Java projects in Workspace" />
        </p>
      </li>
    </ol>

    <p class="nav_footer" id="nav_footer">
      Next Section: <a href="qs-WorkingWithExistingLayout2.htm">Overlapping
      products in a common source tree</a>
    </p>
    <h3 class="related">Related Concepts</h3>
      <a href="../concepts/concept-java-project.htm">Java projects</a><br />
      <a href="../concepts/concept-java-views.htm">Java views</a>

    <h3 class="related">Related References</h3>
      <a href="../reference/ref-wizard-java-project.htm">New Java Project
      Wizard</a><br />
      <a href="../reference/views/ref-view-package-explorer.htm">Package
      Explorer View</a>
  </body>
</html>
